package Model;

import java.util.ArrayList;

public class StudentCourse {
    /**
     * @author 栾兆阳
     * courseName 是默认的课程名
     * courseNameNew 是更改课程名是临时用的
     * score 往数据库写入分数的时候所用
     * courseList 查找每个学生的所有分数组成arraylist
     */
    private String name;
    private String nameNew;
    private int score;
    private ArrayList<Integer> courseList = new ArrayList<>();

    public StudentCourse() {

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNameNew() {
        return nameNew;
    }

    public void setNameNew(String nameNew) {
        this.nameNew = nameNew;
    }

    public void setCourseList(int score) {
        this.courseList.add(score);
    }

    public ArrayList<Integer> getCourseList() {
        return courseList;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

}
